package com.user.profile.controller;

import com.user.profile.dao.UserMapper;
import com.user.profile.service.user.UserService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author linlx
 * @Date 2021/9/22 9:30
 * @Description
 **/
@RestController
public class UserController {

  @Resource
  private UserMapper userMapper;

  @Resource
  private UserService userService;


  @GetMapping("/saveUser")
  public void saveUser() {
    for (int i = 0; i < 10; i++) {
      userMapper.save(i + "", i, i);
    }
  }

  @GetMapping("/job")
  public List<String> job() {
    return userService.buildCkInsert();
  }

}
